<?php

function logfile($title = '', $content = '') {
  $phpself = $_SERVER['PHP_SELF'];
  $timestr = date('Y-m-d H:i:s');
  file_put_contents('log_text.txt', "[{$timestr}][{$phpself}][{$title}]\n{$content}\n\n", FILE_APPEND);
}
